<!-- Botões -->
<div class="row-fluid">
    <div class="span2 action-btn round-all">
        <a href="<?php echo $this->url('sisesporte-admin', array('controller' => 'professor')) ?>" title="Consultar">
            <div><i class="icon-th-list"></i></div>
            <div><strong>Consultar</strong></div>
        </a>
    </div>
    <div class="span2 action-btn round-all">
        <a href="<?php echo $this->url('sisesporte-admin', array('controller' => 'professor', 'action' => 'new')) ?>" title="Novo Professor">
            <div><i class="icon-th-list"></i></div>
            <div><strong>Novo</strong></div>
        </a>
    </div>
</div>
<!-- Fim Botões -->
<?php
if($this->msg != ""){
    echo '<script src="/js/sisesporte-admin/professor/mensagem.js"></script>';
}
?>
<?php
$form = $this->form;
$form->setAttribute('action', $this->url('sisesporte-admin-interna', array('controller' => 'professor', 'action' => 'edit', 'id' => $this->entity)));
$form->prepare();
echo $this->form()->openTag($form);
?>
<!-- Dados Pessoais -->
<h2>Editar Professor</h2>
<div class="row-fluid">
    <div class="span12 column" id="col0">
        <div class="box">
            <h4 class="box-header round-top">
                Dados Pessoais
                <a class="box-btn" title="toggle">
                    <i class="icon-minus"></i>
                </a>
            </h4>
            <div class="box-container-toggle">
                <div class="box-content">
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="controls controls-rows">
                                <?php echo $this->formRow($form->get('noPessoa')) ?>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span3">
                                <div class="input-append date" id="dpDtNascimento"
                                     data-date="<?php echo date('d/m/Y') ?>"
                                     data-date-format="dd/mm/yyyy">
                                         <?php echo $this->formRow($form->get('dtNascimento')) ?>
                                    <span class="add-on"><i class="icon-calendar"></i> </span>
                                </div>
                            </div>
                            <div class="span3" id="">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('nuCpf')) ?>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span12">
                                <div class="span3" id="">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('nuIdentidade')) ?>
                                    </div>
                                </div>
                                <div class="span3">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('sqOrgaoExpIdentidade')) ?>
                                    </div>
                                </div>
                                <div class="span3">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('sqUfOrgExpedidor')) ?>
                                    </div>
                                </div>
                                <div class="span3">
                                    <div class="input-append date" id="dpDtExpedicao"
                                         data-date="<?php echo date('d/m/Y') ?>"
                                         data-date-format="dd/mm/yyyy">
                                             <?php echo $this->formRow($form->get('dtExpedicao')) ?>
                                        <span class="add-on"><i class="icon-calendar"></i> </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span12">
                                <div class="span3">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('sqEstadoCivil')) ?>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('inSexo')) ?>
                                    </div>
                                </div>
                                <div class="span3">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('nuFilho')) ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span12">
                                <div class="span3">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('sqUfDadosPessoais')) ?>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('sqCidadeDadosPessoais')) ?>
                                        <?php echo $this->formRow($form->get('sqCidadeDadosPessoaisH')) ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span12">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('noMae')) ?>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span12">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('noPai')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Fim Dados Pessoais -->
<!-- Dados do Contato -->
<div class="row-fluid">
    <div class="span12 column">
        <div class="box">
            <h4 class="box-header round-top">Dados de Contato
                <a class="box-btn" title="toggle"><i class="icon-minus"></i></a>
            </h4>
            <div class="box-container-toggle">
                <div class="box-content">
                    <div class="row-fluid">
                        <div class="span3">
                            <div class="controls controls-rows input-append">
                                <?php echo $this->formRow($form->get('nuCep')) ?>
                                <button type="button" id="btnCep" class="btn btn-primary" >
                                    <i class="icon-search icon-white"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span3">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('noEndereco')) ?>
                                </div>
                            </div>
                            <div class="span6">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('noComplemento')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span3">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('noBairro')) ?>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqUf')) ?>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqCidade')) ?>
                                    <?php echo $this->formRow($form->get('sqCidadeH')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span3">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('noTelefoneFixo')) ?>
                                </div>
                            </div>
                            <div class="span6">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('noTelefoneMovel')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span10">
                            <div class="controls controls-rows">
                                <?php echo $this->formRow($form->get('noEmail')) ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Fim Dados do Contato -->
<!-- Em caso de emergencia -->
<div class="row-fluid">
    <div class="span12 column">
        <div class="box">
            <h4 class="box-header round-top">Em caso de emergência
                <a class="box-btn" title="toggle"><i class="icon-minus"></i></a>
            </h4>
            <div class="box-container-toggle">
                <div class="box-content">
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span4">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('noContato')) ?>
                                </div>
                            </div>
                            <div class="span3">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('noTelefone')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Fim Dados do Contato -->
<!-- Dados de Profissão -->
<div class="row-fluid">
    <div class="span12 column">
        <div class="box">
            <h4 class="box-header round-top">Dados de Profissão
                <a class="box-btn" title="toggle"><i class="icon-minus"></i></a>
            </h4>
            <div class="box-container-toggle">
                <div class="box-content">
                    <div id="">
                        <div class="row-fluid">
                            <div class="span12">
                                <div class="span4">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('deEspecialidade')) ?>
                                    </div>
                                </div>
                                <div class="span4">
                                    <div class="controls controls-rows">
                                        <?php echo $this->formRow($form->get('coMatricula')) ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="">
                            <div class="row-fluid">
                                <div class="span12">
                                    <div class="span4">
                                        <div class="controls controls-rows">
                                            <?php echo $this->formRow($form->get('nuCargaHoraria')) ?>
                                        </div>
                                    </div>
                                    <div class="span4">
                                        <div class="controls controls-rows">
                                            <?php echo $this->formRow($form->get('noLotacao')) ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="">
                                <div class="row-fluid">
                                    <div class="span12">
                                        <div class="span4">
                                            <div class="controls controls-rows">
                                                <?php echo $this->formRow($form->get('coOrgaoAdmissao')) ?>
                                            </div>
                                        </div>
                                        <div class="span4">
                                            <div class="controls controls-rows">
                                                <?php echo $this->formRow($form->get('sqGrauEscolaridade')) ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row-fluid">
                                    <div class="span12">
                                        <div class="span4">
                                            <div class="controls controls-rows">
                                                <div class="input-append date" id="dpDtInicioSesp"
                                                     data-date="<?php echo date('d/m/Y') ?>"
                                                     data-date-format="dd/mm/yyyy">
                                                         <?php echo $this->formRow($form->get('dtInicioSesp')) ?>
                                                    <span class="add-on"><i class="icon-calendar"></i> </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="span4">
                                            <div class="controls controls-rows">
                                                <div class="input-append date" id="dpDtInicioAdmissao"
                                                     data-date="<?php echo date('d/m/Y') ?>"
                                                     data-date-format="dd/mm/yyyy">
                                                         <?php echo $this->formRow($form->get('dtInicioAdmissao')) ?>
                                                    <span class="add-on"><i class="icon-calendar"></i> </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="span4">
                                            <div class="controls controls-rows">
                                                <div class="input-append date" id="dpDtFinalAdmissao"
                                                     data-date="<?php echo date('d/m/Y') ?>"
                                                     data-date-format="dd/mm/yyyy">
                                                         <?php echo $this->formRow($form->get('dtFinalAdmissao')) ?>
                                                    <span class="add-on"><i class="icon-calendar"></i> </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div id="">
                                    <div class="row-fluid">
                                        <div class="span12">
                                            <div class="span4">
                                                <div class="controls controls-rows">
                                                    <?php echo $this->formRow($form->get('noCref')) ?>
                                                </div>
                                            </div>
                                            <div class="span4">
                                                <div class="controls controls-rows">
                                                    <?php echo $this->formRow($form->get('sqUfCref')) ?>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div id="">
                                    <div class="row-fluid">
                                        <div class="span12">
                                            <div class="span4">
                                                <div class="input-append date" id="dpDtExpedicaoCref"
                                                     data-date="<?php echo date('d/m/Y') ?>"
                                                     data-date-format="dd/mm/yyyy">
                                                         <?php echo $this->formRow($form->get('dtExpedicaoCref')) ?>
                                                    <span class="add-on"><i class="icon-calendar"></i> </span>
                                                </div>
                                                <div class="controls controls-rows">
                                                </div>
                                            </div>
                                            <div class="span4">
                                                <div class="controls controls-rows">
                                                    <div class="input-append date" id="dpDtValidadeCref"
                                                         data-date="<?php echo date('d/m/Y') ?>"
                                                         data-date-format="dd/mm/yyyy">
                                                             <?php echo $this->formRow($form->get('dtValidadeCref')) ?>
                                                        <span class="add-on"><i class="icon-calendar"></i> </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div id="">
                                    <div class="row-fluid">
                                        <div class="span12">
                                            <div class="span4">
                                                <div class="controls controls-rows">
                                                    <?php echo $this->formRow($form->get('deCategoriaCref')) ?>
                                                </div>
                                            </div>
                                            <div class="span4">
                                                <div class="controls controls-rows">
                                                    <?php echo $this->formRow($form->get('deAtuacaoCref')) ?>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Fim Dados do Contato -->
<!-- Dados da Modalidade -->
<div class="row-fluid">
    <div class="span12 column">
        <div class="box">
            <h4 class="box-header round-top">Dados da Modalidade
                <a class="box-btn" title="toggle"><i class="icon-minus"></i></a>
            </h4>
            <div class="box-container-toggle">
                <div class="box-content">
                    <div class="row-fluid">
                        <div class="span12">
                            <span><strong>Apto a ministrar a(s) seguinte(s)
                                    modalidades(s):</strong> </span>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="span12">
                                <div class="controls controls-rows">
                                    <?php echo $this->formRow($form->get('sqModalidade')) ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <br />
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="controls controls-rows">
                                <?php echo $this->formRow($form->get('txObservacao')) ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Fim Dados da Modalidade -->
<!-- Botão -->
<div class="row-fluid">
    <div class="span12 form-actions pull-right btn-toolbar">
        <?php // echo $this->formRow($form->get('cancelar')) ?>
        <?php echo $this->formRow($form->get('salvar')) ?>
    </div>
</div>
<!-- Fim Botão -->
<?php
echo $this->form()->closeTag();
?>

<script src="/js/sisesporte-admin/professor/edit.js"></script>
<script src="/js/sisesporte-admin/professor/validate.js"></script>